﻿using CommunityToolkit.Mvvm.ComponentModel;

namespace AzrngTools.Models;

/// <summary>
/// 菜单
/// </summary>
public class MenuBar : ObservableObject
{
    public MenuBar() { }

    public MenuBar(string title, Type menuType, string toolTip = "")
    {
        Title = title;
        ToolTip = toolTip;
        MenuType = menuType;
    }

    /// <summary>
    /// 标题
    /// </summary>
    public string Title { get; set; }

    /// <summary>
    /// 菜单类型
    /// </summary>
    public Type MenuType { get; set; }

    /// <summary>
    /// 悬浮的值
    /// </summary>
    public string ToolTip { get; set; }

    /// <summary>
    /// 子项
    /// </summary>
    public List<MenuBar> Child { get; set; }
}